//
//  NSString+isBlank.m
//  wp_录音
//
//  Created by 魏鹏 on 16/9/1.
//  Copyright © 2016年 weipeng. All rights reserved.
//

#import "NSString+isBlank.h"

@implementation NSString (isBlank)


- (BOOL) isBlankString {
    
    if ([self isEqualToString:@"(null)"]) {
        return YES;
    }
    
    if ([self isEqualToString:@"<null>"]) {
        return YES;
    }
    
    if (self == nil || self == NULL){
        return YES;
    }
    
    if ([self isKindOfClass:[NSNull class]]){
        return YES;
    }
    
    if ([[self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length]==0){
        return YES;
    }
    
    if (self.length == 0) {
        return YES;
    }
    
    return NO;
}


@end
